css node tree: Fix crash
authorTimm Bäder <mail@baedert.org>
Wed, 10 Feb 2016 11:28:32 +0000 (12:28 +0100)
committerTimm Bäder <mail@baedert.org>
Wed, 10 Feb 2016 11:28:32 +0000 (12:28 +0100)
This function would return "" whenever the state of the css node was
unset, causing a crash when selecting the css node tree from the
sidebar.

gtk/inspector/css-node-tree.c

index db2e8207249d25f572d6979c626ad5cf373e5d52..a207e183f40a138aadafe3b40d3f684aad8f986f 100644 (file)
@@ -395,7 +395,7 @@ format_state_flags (GtkStateFlags state)
       return g_string_free (str, FALSE);
     }
 
- return "";
+ return g_strdup ("");
 }
 
 static void